package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveFlavor(DishDto dishDto);
    //分页查询
    Page<DishDto> pageDishDto(Integer page, Integer pageSize, String name);
    //根据ID查询数据回显
    DishDto updateFlavor(Long id);
    //修改数据
    void updateDishById(DishDto dishDto);
    //查询菜品的详情信息
    List<DishDto> listDishDto(Long categoryId, String name);
    //批量删除菜品
    void deleteDish(Long[] ids);
}
